using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using FileHelpers;


[DelimitedRecord("\t")]
[IgnoreFirst(1)]
[IgnoreCommentedLines("//")]
[IgnoreEmptyLines(true)]
public class ConfigLevelItem
{
	public int id;
	public string origin;
	public string destination;
}

public class ConfigLevel : GConfigDataTable<ConfigLevelItem>
{
	public ConfigLevel()
		: base("ConfigLevel")
	{
	}

	protected override void OnDataLoaded()
	{
//		Debug.LogError("ConfigString");
		RebuildIndexField<int>("id");
	}

	public ConfigLevelItem GetConfigLevelItem(int ID)
	{
		return FindRecordByIndex<int>("id", ID);
	}

	public List<ConfigLevelItem> GetAllConfigLevelItem()
	{
		return records;
	}
}
